﻿<%@ Page Language="C#" MasterPageFile="~/NhanVien/NhanVien.master" AutoEventWireup="true" CodeFile="frChitietDT.aspx.cs" Inherits="Admin_frChitietDT" Title="Thông tin chi tiết đề thi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


                                    <div class="wrap">
        <h2>
            Chi tiết thông tin đề thi |
            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="node"
            NavigateUrl="~/NhanVien/frmNVTaoDeThi.aspx" BackColor="#F1F1F2" >Quản lý đề thi</asp:HyperLink>
       </h2>
    </div>
    <div style="clear: both;">&nbsp;</div>


    <div class="wrap" style="border: solid 1px #CCCCCC;">
    <table style="width: 100%">
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataSourceID="SqlDataSource1" BackColor="White" BorderColor="#CCCCCC" 
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged">
                    <RowStyle ForeColor="#000066" />
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:TemplateField HeaderText="STT" >
                            <ItemTemplate>
                            <%#Container.DataItemIndex + 1%>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Nội Dung Câu Hỏi" DataField="NoiDungCH" >
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DA1" HeaderText="A" SortExpression="DA1">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DA3" HeaderText="B" SortExpression="DA3">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DA2" HeaderText="C" SortExpression="DA2">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DA4" HeaderText="D" SortExpression="DA4">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DADUNG" HeaderText="True" SortExpression="DADUNG">
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:TemplateField Visible="False">
                        <ItemTemplate>
<asp:Label ID="lblmach" runat="server" Text='<%# Eval("MaCH") %>' >
</asp:Label>
</ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:TracNghiemTrucTuyenConnectionString %>" 
                    
                    
                    
                    SelectCommand="SELECT tbl_NGANHANGCAUHOI.NoiDungCH, tbl_NGANHANGCAUHOI.DA1, tbl_NGANHANGCAUHOI.DA3, tbl_NGANHANGCAUHOI.DA2, tbl_NGANHANGCAUHOI.DA4, tbl_NGANHANGCAUHOI.DADUNG, tbl_NGANHANGCAUHOI.MaCH FROM tbl_NGANHANGCAUHOI INNER JOIN tbl_CHITIETDETHI ON tbl_NGANHANGCAUHOI.MaCH = tbl_CHITIETDETHI.MaCH WHERE (tbl_CHITIETDETHI.MaDT = @MaDT)">
                    <SelectParameters>
                        <asp:QueryStringParameter Name="MaDT" QueryStringField="madt" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td>
                <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" ForeColor="Black" GridLines="Vertical">
                    <RowStyle BackColor="#F7F7DE" />
                    <Columns>
                        <asp:BoundField DataField="NoidungCH1" HeaderText="Nội dung" />
                        <asp:BoundField DataField="Da11" HeaderText="A" />
                        <asp:BoundField DataField="Da21" HeaderText="B" />
                        <asp:BoundField DataField="Da31" HeaderText="C" />
                        <asp:BoundField DataField="Da41" HeaderText="D" />
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:TemplateField Visible="False">
                        <ItemTemplate>
<asp:Label ID="lblmachright" runat="server" Text='<%# Eval("MaCH1") %>' >
</asp:Label>
</ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:Button ID="btnThay" runat="server" Text="Thay Thế" 
                    onclick="btnThay_Click" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </div>
                               

    
</asp:Content>

